//
//  PhotoCell.m
//  HWSGW
//
//  Created by avachen on 15/11/6.
//  Copyright © 2015年 luxuanrui. All rights reserved.
//

#import "PhotoCell.h"
#import "PhotoScrollView.h"

@implementation PhotoCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createView];
    }
    return self;
}
- (void)awakeFromNib
{
    [self createView];
    
}
- (void)createView{
    _scrollView = [[PhotoScrollView alloc] initWithFrame:self.bounds];
    [self.contentView addSubview:_scrollView];

}
- (void)setUrl:(NSString *)url
{
    if (_url != url) {
        _url = url;
        _scrollView.url = [NSURL URLWithString:url];
        
    }
}
@end
